package com.neuedu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.mapper.LoginMapper;
import com.neuedu.po.UserinfoPO;
import com.neuedu.service.LoginService;
import com.neuedu.vo.LoginVO;
import com.neuedu.vo.RegistVO;
import com.neuedu.vo.UserinfoVO;

@Service
public class LoginServiceImpl implements LoginService {
	
	@Autowired
	private LoginMapper mapper;

	@Override
	public int registUser(RegistVO vo) throws Exception {
		mapper.registNewUser(vo);
		return 0;
	}

	@Override
	public UserinfoPO validateLogin(LoginVO vo) throws Exception {
		// TODO Auto-generated method stub
		return mapper.validateLogin(vo);
	}

	@Override
	public UserinfoVO getUserinfoByID(String userid) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int saveUser(UserinfoVO vo) throws Exception {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String getUserHeadImage(String userid) throws Exception {
		// TODO Auto-generated method stub
		return mapper.getUserHeadImage(userid);
	}

}
